/*
 * Copyright (C), 2013-2016, 汇通达网络有限公司
 * FileName: CommonConstants.java
 * Author:   杨振宁
 * Date:     2016-6-21 下午7:26:47
 * Description: //模块目的、功能描述      
 * History: //修改记录
 * <author>      <time>      <version>    <desc>
 * 修改人姓名             修改时间            版本号                  描述
 */
package com.htd.htdapmcommon.constants;


public class AlarmConstants {

    /**
     * 年月日常量
     */
    public static final String ALARMA_SUCCESS = "0";
    
    public static final String SEARCH_ALARMA_SUCCESS = "200";

    public static final String ONE_ALERT_TOKEN ="one_alert_token";
    //半小时
    public static final long  ONE_ALERT_TOKEN_EXPIRE=1800;

    public static final String ENCODE_UTF ="UTF-8";

    public static String getOneAlertKey(String key){
        key = "APM_"+key+"_KEY";
        return key;
    }
    
    
    public static final String SKYWALKING_INDEX_NAME = "kywalking";

    public static final String SKYWALKING_TYPE_NAME = "alarmmessagedto";
	
    public static final String PROMETHEUS_INDEX_NAME = "prometheus";

    public static final String PROMETHEUS_TYPE_NAME = "prometheusdto";
    
    public static final String BUSINESS_INDEX_NAME = "business";
    
    public static final String BUSINESS_TYPE_NAME = "businessdto";
    
    public static final String TYPE_PROMETHEUS = "prometheus";
    
    public static final String TYPE_SKYWALKING = "SKYWALKING";
    
    public static final String TYPE_ZABBIX = "ZABBIX";
    
    public static final String TYPE_BUSINESS = "BUSINESS";
    
    public static final String ZABBIX_INDEX_NAME = "zabbix";
    
    public static final String ZABBIX_TYPE_NAME = "zabbixdto";
    
    public static final String SOURCE_FROM_1 = "1"; //来源：skywalking
    
    public static final String SOURCE_FROM_2 = "2"; //来源：prometheus
		
    public static final String SOURCE_FROM_3 = "3"; //来源：zabbix
    
    public static final String SOURCE_FROM_4 = "4"; //来源：ELK业务日志
}
